package com.rockcent.mall.lib.dto;

/**
 * 第三方用户登录
 * Created by zhangjh on 2017/1/12.
 */
public class ThirdPartyUserInfoDto {

    /**
     * 第三方唯一凭证
     */
    private String appKey;

    /**
     * 第三方唯一凭证密钥
     */
    private String appSecret;

    /**
     * 获取access_token填写client_credential
     */
    private String grantType;


    /**
     * 获取到的凭证
     */
    private String accessToken;

    /**
     * 凭证有效期，时间：秒
     */
    private Long expiresIn;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }

    public Long getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Long expiresIn) {
        this.expiresIn = expiresIn;
    }

    @Override
    public String toString() {
        return "ThirdPartyUserInfoDto{" +
                "appKey='" + appKey + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", grantType='" + grantType + '\'' +
                ", accessToken='" + accessToken + '\'' +
                ", expiresIn=" + expiresIn +
                '}';
    }
}
